<%@ page import="java.util.ArrayList" %>
<%@ page import="com.itheima.bean.Student" %><%--
  Created by IntelliJ IDEA.
  User: 98103
  Date: 2020/7/20
  Time: 20:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>查看学生</title>
</head>
<body>
<table width="600px" border="1px">
    <tr>
        <th>姓名</th>
        <th>年龄</th>
        <th>成绩</th>
    </tr>
    <%
        ArrayList<Student> students =(ArrayList<Student>) session.getAttribute("students");
        for (Student student : students) {


    %>
    <tr align="center">
        <td><%=student.getUsername()%></td>
        <td><%=student.getAge()%></td>
        <td><%=student.getScore()%></td>
    </tr>

    <% } %>

</table>
</body>
</html>
